﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

using Google.GData.Calendar;
using Google.GData.Extensions;
using Google.GData.Client;

namespace GJReminder.ViewModel.Command
{
    class UpdateEventCommand : ICommand
    {
        #region ICommand Members

        bool ICommand.CanExecute(object parameter)
        {
            throw new NotImplementedException();
        }

        event EventHandler ICommand.CanExecuteChanged
        {
            add { throw new NotImplementedException(); }
            remove { throw new NotImplementedException(); }
        }

        void ICommand.Execute(object parameter)
        {
            EventEntry retrievedEntry = parameter as EventEntry;
            if (null != retrievedEntry)
            {
                retrievedEntry.Update();
            }
        }

        #endregion
    }
}
